package StudyCode.summary.mycollection;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class BindsTwoLinearArraysProducingA2DArray {
	public static double[][] rBind(double[] axis, double[] seriesData) {
		if (axis.length == seriesData.length) {
			int len = axis.length;
			double[][] res = new double[len][2];
			for (int i = 0; i < len; i++) {
				res[i][0] = axis[i];
				res[i][1] = seriesData[i];
			}
			return res;
		}
		return null;
	}
}
